/*
########################################################################
#                                                                      # 
# Written by Andreas Marschke E-Mail:xxtjaxx@gmail.com or AnMa9@gmx.de #
#                                                                      #
# This program is free software; you can redistribute it and/or modify #
#                                                                      #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or    #
# (at your option) any later version.                                  #
#                                                                      # 
# This program is distributed in the hope that it will be useful,      #
# but WITHOUT ANY WARRANTY; without even the implied warranty of       #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        #
# GNU General Public License for more details.                         #
#                                                                      #
# You should have received a copy of the GNU General Public License    #
# along with this program; if not, write to the Free Software          # 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,           #
# MA 02110-1301, USA.                                                  #
#                                                                      #
######################################################################## 
*/

/*
########################################################################
#                                                                      #
# The main function checks what comes back and does                    #
# what it is supposed to do when it gets this answer.                  #
#                                                                      #
########################################################################
 */
#include<iostream>
#include<fstream>
#include"optional_analysis.h"
using namespace std;
/*
  The main function
*/
int main( int argc , char* argv[] )
{
  
  /*
    first we declare variables that pickup our values
    int i is the current argv option given at the start
    for examble:$ start argv[1] argv[2] argv[3]
  */
  
  int i = 1 ;
  
  /*
    the while-loop checks for the input of each argv[] array
    (except the argv[0] of course).
  */
  while( i != 2 )
    {
      /*
	The switch statement checks then for the values returned from 
	the option_input_analysis function. As mentioned in option_analysis
	this is important because switch accepts single chars only.
       */  
      switch( option_input_analysis( argv[i] ) )
	{
	case 'h':
	  {
	    /*
	      Reaction on what option_input_analysis returns.
	     */
	    cout << "hello World" << endl ;
	    return 0;
	  }
	case 'v':
	  {
	    cout << argv[1] << endl;
	    return 0;
	  }
	case 'E':
	  {
	    cout << "ERROR" << endl;
	    return 0;
	  }
	default:
	  {
	    return 0;
	  }
	}
    }

  return 0;
}

